/**
 * 权力的接口封装
 */
import request from '@/utils/request'
export const getRightsList = type => request({
  method: 'get',
  url: `/rights/${type}`
}).then(res => res.data)
/**
 * 获取当前登录用户的权限菜单
 */
export const getRightsMenu = () => request({
  method: 'get',
  url: `/menus`
}).then(res => res.data)
